]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionDownloader: Clean up names of methods
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 27 Jun 2012 00:46:37 +0000 (20:46 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 2 Jul 2012 22:29:56 +0000 (18:29 -0400)
FromUUID is redundant.

https://bugzilla.gnome.org/show_bug.cgi?id=679099

js/ui/extensionDownloader.js
js/ui/shellDBus.js

index 3f2069b93df82eb61bf616db72b2979d914f958a..d7940852a664e522df0215519773b0c73ae9cf5d 100644 (file)
@@ -22,7 +22,7 @@ const REPOSITORY_URL_INFO =     REPOSITORY_URL_BASE + '/extension-info/';
 
 let _httpSession;
 
-function installExtensionFromUUID(uuid, invocation) {
+function installExtension(uuid, invocation) {
     let params = { uuid: uuid,
                    shell_version: Config.PACKAGE_VERSION };
 
@@ -49,7 +49,7 @@ function installExtensionFromUUID(uuid, invocation) {
     });
 }
 
-function uninstallExtensionFromUUID(uuid) {
+function uninstallExtension(uuid) {
     let extension = ExtensionUtils.extensions[uuid];
     if (!extension)
         return false;
@@ -115,7 +115,7 @@ function gotExtensionZipFile(session, message, uuid, callback, errback) {
         try {
             ExtensionSystem.loadExtension(extension);
         } catch(e) {
-            uninstallExtensionFromUUID(uuid);
+            uninstallExtension(uuid);
             errback('LoadExtensionError', e);
             return;
         }
index e402cabbbdf6011b4d0992f7e50b7f720ad8374e..83074e4ba50655c9a3e45e70e84e849e44b02d66 100644 (file)
@@ -287,11 +287,11 @@ const GnomeShellExtensions = new Lang.Class({
     },
 
     InstallRemoteExtensionAsync: function([uuid], invocation) {
-        return ExtensionDownloader.installExtensionFromUUID(uuid, invocation);
+        return ExtensionDownloader.installExtension(uuid, invocation);
     },
 
     UninstallExtension: function(uuid) {
-        return ExtensionDownloader.uninstallExtensionFromUUID(uuid);
+        return ExtensionDownloader.uninstallExtension(uuid);
     },
 
     LaunchExtensionPrefs: function(uuid) {